package com.ws.haungjia.Service.ServiceImp;

import com.ws.haungjia.Bean.Fenlie;
import com.ws.haungjia.Service.FenlieService;
import com.ws.haungjia.mapper.FenlieMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FenlieServiceImp implements FenlieService {
    @Autowired
    private FenlieMapper fenlieMapper;
    @Override
    public List<Fenlie> chaxun() {
        return fenlieMapper.chaxun();
    }

    @Override
    public int add(Fenlie fenlie) {
        return fenlieMapper.insert(fenlie);
    }

    @Override
    public List<Fenlie> paichong(int weizhi,String name) {
        return fenlieMapper.paichong(weizhi, name);
    }

    @Override
    public Fenlie huixian(int id) {
        return fenlieMapper.huixian(id);
    }

    @Override
    public int xiugai(String fname, int weizhi, int id) {
        return fenlieMapper.xiugai(fname, weizhi, id);
    }

    @Override
    public int shan(int id) {
        return fenlieMapper.shan(id);
    }
}
